export function useTakeEffectType() {
  const TakeEffectTypes = [
    {
      label: "领取后立即使用",
      value: 0
    },
    {
      label: "领取后第二天可使用",
      value: 1,
    }
  ]

  const getTakeEffectTypeLabel = (value: number) => {
    return TakeEffectTypes.find(item => item.value === value)?.label ?? value
  }

  return {
    TakeEffectTypes,
    getTakeEffectTypeLabel
  }
}